//Json call to get non associated Langs with the given gameId
function getNonAssociatedLangs(gameId, comboId){
	$.getJSON(JsonUrls.NON_ASSOCIATED_LANGS,{"gameId":gameId},
			function (data){
				refillLangCombo(data, comboId);
			});
}

//Json call to get associated Langs with the given gameId
function getAssociatedLangs(gameId, comboId){
	$.getJSON(JsonUrls.ASSOCIATED_LANGS,{"gameId":gameId},
			function (data){
				refillLangCombo(data, comboId);
			});
}

function refillLangCombo(data, comboId){
	var i;
	$('#'+comboId+' > option').remove();
	$('#'+comboId).append(createOption('','All'));
	
	for(i=0;i<data.length;i++){
		$('#'+comboId).append(createOption(data[i].id, data[i].description));
	}
}